package hsh.xun;
import java.util.Scanner;
public class brank {
    public static void main(String[] args) {
        double hu1;
        double hu2;
        double hu3;
        double hu4;
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入存款金额");
        double money = sc.nextDouble();
        System.out.print("请输入存款方式");
        int income = sc.nextInt();
        if (money>= 1000) {

            switch (income) {
                case 1:
                    hu1 = money * 0.0225+money;
                    System.out.println("可获得" + hu1 + "元");
                    break;
                case 2:
                    hu2 = money * 0.027+money;
                    System.out.println("可获得" + hu2 + "元");
                    break;
                case 3:
                    hu3 = money * 0.03253+money;
                    System.out.println("可获得" + hu3 + "元");
                    break;
                case 4:
                    hu4 = money * 0.036+money;
                    System.out.println("可获得" + hu4 + "元");
                     break;
            }
        }
        else {
            System.out.println("请重新输入");
        }

    }

    }



